<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>准入验证 请确认身份证信息</title>
    <jsp:include page="../../import.jsp" flush="true"/>
</head>
<body class="iframeBody">
	<div class="Wrapper">
		<div>
			<div id="pageInTab" class="pageInTab">
			    <form id="capFund_form">
			        <div class="fieldset1 tabel_col clearFix">
			            <div class="fieldBox col_100">
			                <div class="label">客户名称</div>
			                <div class="field">${cstNm}</div>
			            </div>
			            <div class="fieldBox col_100">
			                <div class="label">手机号码</div>
			                <div class="field">${mp}</div>
			            </div>
			            <div class="fieldBox col_100">
			                <div class="label">身份证号</div>
			                <div class="field">${certNo}</div>
			            </div>
			            <div class="fieldBox col_100">
			                <div class="label">身份证正面</div>
			                <div class="field">
			                	<c:if test="${idCardPositiveFilePath == null}">未上传</c:if>
			                	<c:if test="${idCardPositiveFilePath != null}">
			                		<a href="javascript:uploadFileByUrl('${idCardPositiveFilePath}', '${idCardPositiveFileName}')">${idCardPositiveFileName}</a>
			                	</c:if>
			                	<c:if test="${positiveError != null}">&nbsp;&nbsp;<font color="red">${positiveError}</font></c:if>
			                </div>
			            </div>
			            <div class="fieldBox col_100">
			                <div class="label">身份证反面</div>
			                <div class="field">
			                	<c:if test="${idCardObverseFilePath == null}">未上传</c:if>
			                	<c:if test="${idCardObverseFilePath != null}">
			                		<a href="javascript:uploadFileByUrl('${idCardObverseFilePath}', '${idCardObverseFileName}')">${idCardObverseFileName}</a>
			                	</c:if>
			                	<c:if test="${obverseError != null}">&nbsp;&nbsp;<font color="red">${obverseError}</font></c:if>
			                </div>
			            </div>
			            <div class="fieldBox col_100">
							&nbsp;&nbsp;身份证上传要求：<br/>
							&nbsp;&nbsp;1、文件限制：512K <br/>
							&nbsp;&nbsp;2、身份证占比需要大于75% <br/>
							&nbsp;&nbsp;3、图像分辨率大于800*480 <br/>
							&nbsp;&nbsp;4、图片格式 支持JPG、PNG <br/>
							&nbsp;&nbsp;5、避免身份证上有亮光，或者背景颜色过为亮丽 <br/>
			            </div>
			        </div>
			    </form>
			</div>
		</div>
	</div>
</body>
<script>
$(function () {
	if(${idCardPositiveFilePath != null} && ${idCardObverseFilePath != null} && ${positiveError == null} && ${obverseError == null}) {
		parent.document.getElementById('confirmFile').value = "1";
	}
});

function uploadFileByUrl(_url,_name){
	if(SQ.regs.img.test(_name)){
		//SQ.imgPreview(_url);
		//SQ.imgPreview(_url, true);
	   window.__ImgSrc = _url;
       window.__ImgTit = _name;
       window.open('<%=path%>/project/prjbscinfo/imgWinOpen.do', '', 'location=yes, width=800, height=600');
	}else{
        window.open(_url);
	}
}


</script>

</html>
